<template>
  <div class="banner">
    <div class="photo">
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="#f90">
        <van-swipe-item v-for="item in list" :key="item.url">
          <img :src="item.thumb_image" alt="" />
        </van-swipe-item>
      </van-swipe>
    </div>
  </div>
</template>

<script>
export default {
  name: "banner",
  props: {
    list: Array,
  },
  created() {
    // console.log(this.list);
  },
};
</script>

<style lang="less" scoped>
.banner {
  width: 100%;
  height: 318px;
  margin-top: 82px;
  padding: 0 40px;
  box-sizing: border-box;
  background: linear-gradient(#08dbdb 30%, #c3dbe0);
  // border: #000 solid 1px;
  .photo {
    width: 100%;
    height: 280px;
    display: flex;
    border-radius: 20px;
    border: #000 solid 1px;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
    }
  }
}
.van-swipe__indicator {
  background-color: #ccc;
  opacity: 0.5;
  width: 16px;
  height: 16px;
}
</style>
